package edu.whut.mall.admin.enums;

/**
 * @program: d9lab-mall
 * @description: 资源类型
 * @author: Wayne
 * @create: 2020-04-14 13:13
 **/
public enum ResourceTypeEnum {
    RESOURCE_MENU("菜单",0), RESOURCE_VIEW("页面",1), RESOURCE_BUTTON("按钮",2);

    private final String desc;
    private final Integer code;

    private ResourceTypeEnum(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String toString() {
        return "ResourceType{" +
                "desc='" + desc + '\'' +
                ", code=" + code +
                '}';
    }
}
